add_llvm_component_library(LLVMObject
  Archive.cpp
  ArchiveWriter.cpp
  Binary.cpp
  COFFImportFile.cpp
  COFFModuleDefinition.cpp
  COFFObjectFile.cpp
  Decompressor.cpp
  DXContainer.cpp
  ELF.cpp
  ELFObjectFile.cpp
  Error.cpp
  FaultMapParser.cpp
  IRObjectFile.cpp
  IRSymtab.cpp
  MachOObjectFile.cpp
  MachOUniversal.cpp
  Minidump.cpp
  ModuleSymbolTable.cpp
  Object.cpp
  ObjectFile.cpp
  OffloadBinary.cpp
  RecordStreamer.cpp
  RelocationResolver.cpp
  SymbolicFile.cpp
  SymbolSize.cpp
  TapiFile.cpp
  TapiUniversal.cpp
  MachOUniversalWriter.cpp
  WasmObjectFile.cpp
  WindowsMachineFlag.cpp
  WindowsResource.cpp
  XCOFFObjectFile.cpp

  ADDITIONAL_HEADER_DIRS
  ${LLVM_MAIN_INCLUDE_DIR}/llvm/Object

  DEPENDS
  intrinsics_gen
  llvm_vcsrevision_h

  LINK_COMPONENTS
  BitReader
  Core
  MC
  BinaryFormat
  MCParser
  Support
  TextAPI
  )
